<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<%@ page isELIgnored="false"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>订单详情页</title>
		<link href="${ctx}/css/css.css" rel="stylesheet" type="text/css" />

	</head>

	<body>
		<div class="bg">
			<div class="bg_inside">
				<div class="cont">

					<div class="cont_top">
						<div style="float: left">
							<img src="${ctx}/images/logo.jpg" /border="0">
						</div>
					</div>
					<div
						style="width: 600px; padding: 10px 0px; margin: 0px; float: left;">
						订单号：
						<span class="orange">
								<logic:empty name="orderall" property="id">&nbsp;</logic:empty>
								<logic:notEmpty name="orderall" property="id">${orderall.id}</logic:notEmpty>
						</span> 订单状态：
						<span class="orange"> 
							<logic:equal value="1" name="orderall" property="status">待审核</logic:equal> 
							<logic:equal value="2" name="orderall" property="status">已审核，正在配货</logic:equal>
							<logic:equal value="3" name="orderall" property="status">客户取消</logic:equal>
							<logic:equal value="4" name="orderall" property="status">客服取消</logic:equal>
							<logic:equal value="5" name="orderall" property="status">系统自动取消</logic:equal>
							<logic:equal value="6" name="orderall" property="status">已完成</logic:equal>
							<logic:equal value="7" name="orderall" property="status">已自提</logic:equal>
							<logic:equal value="8" name="orderall" property="status">可自提</logic:equal>
							<logic:equal value="9" name="orderall" property="status">待自提</logic:equal>
							<logic:equal value="10" name="orderall" property="status">产品部已确认</logic:equal>
						</span> 下单时间：
						<span class="orange">
							<logic:empty name="orderall" property="adddate"></logic:empty> 
                            &nbsp;<logic:notEmpty name="orderall" property="adddate">${orderall.adddate}</logic:notEmpty>
						 </span>
					</div>
					<div class="cont_new">
						<ul>
							<li style="color: #5a3e2e; padding-left: 15px">
								<img src="${ctx}/images/title_letter_icon.jpg" />
								收货人信息
							</li>
							<li>
								收货人姓名：
								<logic:empty name="orderall" property="consignee">&nbsp;</logic:empty>
								<logic:notEmpty name="orderall" property="consignee">${orderall.consignee}</logic:notEmpty>
							</li>
							<li>
								省 份：
								<logic:empty name="orderall" property="city">&nbsp;</logic:empty>
								<logic:notEmpty name="orderall" property="city">${orderall.city}</logic:notEmpty>
							</li>
							<li>
								地 址：
								<logic:empty name="orderall" property="address">&nbsp;</logic:empty>
								<logic:notEmpty name="orderall" property="address">${orderall.address}</logic:notEmpty>
							</li>
							<li>
								邮 编：
								<logic:empty name="orderall" property="postcode">&nbsp;</logic:empty>
								<logic:notEmpty name="orderall" property="postcode">${orderall.postcode}</logic:notEmpty>
							</li>
							<li>
								固定电话：
								<logic:empty name="orderall" property="phone">&nbsp;</logic:empty>
								<logic:notEmpty name="orderall" property="phone">${orderall.phone}</logic:notEmpty>
							</li>
							<li>
								手机号码：
								<logic:empty name="orderall" property="mobilephone">&nbsp;</logic:empty>
								<logic:notEmpty name="orderall" property="mobilephone">${orderall.mobilephone}</logic:notEmpty>
							</li>
							<li>
								电子邮件：
								<logic:empty name="orderall" property="email">&nbsp;</logic:empty>
								<logic:notEmpty name="orderall" property="email">${orderall.email}</logic:notEmpty>
							</li>
						</ul>
					</div>
					<div class="cont_new">
						<ul>
							<li style="color: #5a3e2e; padding-left: 15px">
								<img src="${ctx}/images/title_letter_icon.jpg" />
								付款方式
							</li>
							<li>
								<logic:empty name="orderall" property="paymenttype">&nbsp;</logic:empty>
								<logic:equal value="1" name="orderall" property="paymenttype">支付宝</logic:equal>
								<logic:equal value="2" name="orderall" property="paymenttype">快钱</logic:equal>
								<logic:equal value="3" name="orderall" property="paymenttype">信用卡分期付款</logic:equal>
								<logic:equal value="4" name="orderall" property="paymenttype">上门自提</logic:equal>
								<logic:equal value="5" name="orderall" property="paymenttype">货到付款</logic:equal>
								<logic:equal value="6" name="orderall" property="paymenttype">银行转账/汇款</logic:equal>
								<logic:equal value="7" name="orderall" property="paymenttype">货到POS机刷卡</logic:equal>
							</li>

						</ul>
					</div>
					<div class="cont_new">
						<ul>
							<li style="color: #5a3e2e; padding-left: 15px">
								<img src="${ctx}/images/title_letter_icon.jpg" />
								配送方式
							</li>
							<li>
								<logic:equal value="2" name="orderall" property="delivertype">顺丰速运</logic:equal>
								<logic:equal value="5" name="orderall" property="delivertype">EMS</logic:equal>
								<logic:equal value="6" name="orderall" property="delivertype">圆通快递</logic:equal>
								<logic:equal value="9" name="orderall" property="delivertype">上门自提</logic:equal>
								<logic:equal value="10" name="orderall" property="delivertype">货到付款（北京）</logic:equal>
							</li>
						</ul>
					</div>

					<div class="cart_cont">
						<ul>
							<li style="color: #5a3e2e; background-color: #efefef">
								<span style="margin: 0px">商品图片</span><span
									style="width: 280px; margin: 0px">商品名称</span><span
									style="margin: 0px">商品单价</span><span style="margin: 0px">赠送积分</span><span
									style="margin: 0px">单品小计</span><span style="margin: 0px">是否开发票</span><span
									style="margin: 0px">选购数量</span>
							</li>
							<logic:iterate id="product" name="productlist" indexId="cd">
								<li>
									<span style="margin: 0px"><a href="${ctx}/product/productMessage.do?method=shopDeatails&id=${product.productid}" target="_blank"><img
												src="${ctx}/product_image/${product.productid}_1_50X50.jpg"  border="0px" width="50px" height="50px" /> </a> </span><span
										style="width: 280px"><a href="${ctx}/product/productMessage.do?method=shopDeatails&id=${product.productid}" target="_blank"
										class="text_ad">${product.name}</a> </span>
									<span> <logic:equal value="0" name="product" property="hasinvoice">
												￥<bean:write name="product" property="unitprice" format="0.00" />元
											</logic:equal> 
											<logic:equal value="1" name="product" property="hasinvoice">
												￥<bean:write name="product" property="pricetax" format="0.00" />元
											</logic:equal>
									</span>
									<span>${product.getpoint}</span>
									<span>￥<bean:write name="product" property="sum" format="0.00" />元</span>
									<span><logic:equal value="0" name="product"
											property="hasinvoice">否</logic:equal> <logic:equal value="1"
											name="product" property="hasinvoice">是</logic:equal> </span>
									<span>${product.number}</span>
								</li>
							</logic:iterate>
							<logic:iterate id="present" name="presentList" >
									<li>
									<span style="margin: 0px"><a href="" target="_blank"><img
												src="${ctx}/product_image/${present.value.id}_1_50X50.jpg"  border="0px" width="50px" height="50px" /> </a> </span><span
										style="width: 280px"><a href="${ctx}/product/productMessage.do?method=shopDeatails&id=${present.value.id}" target="_blank"
										class="text_ad">${present.value.name}</a> </span>
									<span> 
										赠品
									</span>
									<span>——</span>
									<span>——</span>
									<span>——</span>
									<span>${present.value.quantity}</span>
								</li>
							</logic:iterate>
						</ul>
					</div>
					<div class="cont_new">
						<ul>
							<li style="color: #5a3e2e; padding-left: 15px">
								<img src="${ctx}/images/title_letter_icon.jpg" />
								发票信息
							</li>
							<li>
								发票类型：
								<logic:equal value="1" name="orderall" property="invoicetype">普通发票</logic:equal>
								<logic:equal value="2" name="orderall" property="invoicetype">增值税发票</logic:equal>
							</li>
							<li>
								发票抬头：${orderall.invoicecompany}
							</li>
							<li>
								发票内容：
								<logic:equal value="1" name="orderall" property="invoicecontent">明细</logic:equal>
								<logic:equal value="2" name="orderall" property="invoicecontent">办公用品</logic:equal>
								<logic:equal value="3" name="orderall" property="invoicecontent">电脑配件</logic:equal>
								<logic:equal value="4" name="orderall" property="invoicecontent">耗材</logic:equal>
							</li>
						</ul>
					</div>
					<div class="cont_new">
						<ul>
							<li style="color: #5a3e2e; padding-left: 15px">
								<img src="${ctx}/images/title_letter_icon.jpg" />
								客户留言
							</li>
							<li>
								${orderall.customerword}
							</li>

						</ul>
					</div>
					<div class="cont_new">
						<ul>

							<li>
								商品金额共计：￥<bean:write name="orderall" property="orderprice" format="0.00" /> 元
							</li>
							<li>
								商品积分共计：${orderall.getpoint} 分
							</li>
							<li>
								手续费： <bean:write name="orderall" property="handlingcharge" format="0.00" /> 元
							</li>
							<li>
								运费： <bean:write name="orderall" property="needcarriage" format="0.00" />  元
							</li>
							<li>
								使用帐户余额：<bean:write name="orderall" property="usebalance" format="0.00" /> 元
							</li>
							<li>
								使用积分：${orderall.usepoint} 分
							</li>
							<li>
								优惠券冲抵： ${ticketMoney} 元
							</li>
							<li>
								您共需要支付：
								<span class="price"><bean:write name="orderall" property="needpay" format="0.00" /></span> 元
							</li>
						</ul>
					</div>
					<div class="cont_new">
						<ul>
							<li>
								如需再次购买此订单中的商品，您可以在此
								<a href="${ctx}/shopping/addToShoppingCart.do?m=addProductForward&${productIdArr}"><font class="orange">将商品放入购物车</font> </a> 或者
								<a href="${ctx}/front/favorite.do?method=addFavorite&${productIdArr}"><font class="orange">将商品放入收藏夹</font> </a>
							</li>
						</ul>
					</div>
					<div class="cont_new" align="center"
						; style="padding: 20px 0px 50px 0px; border: 0px">
						<a href="javaScript:document.execCommand('print');" class="reg_button ">打印本页</a>
						<a href="#" onclick="javaScript:window.close()" class="reg_button ">关闭本页</a>
					</div>
				</div>
			</div>
		</div>
	</body>
	
</html>
